# -*- coding: utf-8 -*-
import json
import requests

# 读取json数据
# with open('log.json', 'r', encoding='utf-8') as f:
#     json_dict = json.loads(f.read())

scanner = 'https://0.0.0.0:3443/'  # Modify URL
apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'  # Modify API
wvs_headers = {"X-Auth": apikey, "content-type": "application/json"}
# url = scanner + '/api/v1/scans?l=100'
url = scanner + '/api/v1/targets'
resp = requests.get(url=url, headers=wvs_headers, verify=False)
print(resp.text)



# if __name__ == '__main__':
#     pass